import request from '@/request/request'

export function fetchList() {
  return '/vue-element-admin/article/list'
}

export function fetchArticle() {
  return '/vue-element-admin/article/detail'
}

export function fetchPv(pv) {
  return request({
    url: '/vue-element-admin/article/pv',
    method: 'get',
    params: { pv }
  })
}

export function createArticle() {
  return '/vue-element-admin/article/create'
}

export function updateArticle() {
  return '/vue-element-admin/article/update'
}
